{extend name="../../admin/view/main"}

{block name="button"}
<button type="button" data-reload class="layui-btn layui-btn-sm" style="font-size: 14px;">页面刷新</button>
{/block}

{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white">
    <div class="layui-tab-content table-block">
        {include file='withdraw/index_search'}
        <table class="layui-table" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='text-left'>用户ID</th>
                <th class='text-left'>提现金额</th>
                <th class="text-left">手续费</th>
                <th class="text-left">提现地址</th>
                <th class="text-left">交易Hash</th>
                <th class="text-left">状态</th>
                <th class="text-left">操作</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td class='text-left '>{$vo.user_id|default=''}</td>
                <td class='text-left '>{$vo.withdraw_amount|default=''}</td>
                <td class='text-left '>{$vo.charge_amount|default=''}</td>
                <td class='text-left '>{$vo.tron_withdraw_address|default=''}</td>
                <td class='text-left '>{$vo.tron_transaction_id|default=''}</td>
                <td class="text-left nowrap">
                    {if $vo.status eq 1}<span class="color-blue">审核中</span>
                    {elseif $vo.status eq 2}<span class="color-red">审核失败</span>
                    {elseif $vo.status eq 3}<span class="color-blue">待提现</span>
                    {elseif $vo.status eq 4}<span class="color-blue">提现中</span>
                    {elseif $vo.status eq 5}<span class="color-green">提现成功</span>
                    {elseif $vo.status eq 6}<span class="color-red">提现失败</span>
                    {/if}
                </td>
                <td class='text-left '>
                    {if $vo.status eq 1}
                    <a class="layui-btn layui-btn-sm" data-action="{:url('status')}"
                       data-value="id#{$vo.id};status#3">审核通过</a>
                    <a class="layui-btn layui-btn-warm layui-btn-sm" data-action="{:url('status')}"
                       data-value="id#{$vo.id};status#2">审核失败</a>
                    {/if}
                    <a class="layui-btn layui-btn-danger layui-btn-sm" data-confirm="确定要删除数据吗?"
                       data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div style="margin-top: -5px;">{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
        </div>
    </div>
</div>
{/block}